import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const getLoginUserInfo = () => request({
    url: baseUrl + '/user/read/current',
    method: 'get',
});

export const editLoginUserInfo = (data) => request({
    url: baseUrl + '/user/update/person',
    method: 'post',
    data:data
})

// export const updateLoginUserAvateraURL = 'http://localhost:90/user/upload/avatar';
export const updateLoginUserAvateraURL = baseUrl + '/user/upload/avatar';

export const editLoginUserAvatera = (data) => request({
    url: baseUrl + '/user/update/person',
    method: 'post',
    data:data
})

